cd /d %~dp0 

"C:\Program Files\Microsoft Office\Office12\VisSDK\Tools\VisSolPublish.exe" /apply "Visio Add-In for System Center.vpc" %1 

cscript vissolpublish_vista_fix.vbs %1 

cscript CustomAction_NoImpersonate.js %1